#!/bin/sh
# Build the ROOT.war

cd ./root
echo "= Changed ./root dir"

zip -r ROOT.war *
echo "= Zipped files to the ROOT.war"

rm -rf ../ROOT.war
echo "= Removed old ../ROOT.war"

mv ROOT.war ../ROOT.war
echo "= Moved new ROOT.war to the ../ dir"

cd ..
echo "= Changed ../ dir"

echo "= Finished."
